home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual Foxpro 6.0 (Ent. Edition) / Vf6ent Extractor.EXE / WIZARDS / FIXWIZ.PRG < prev    next >
Encoding:
Text File  |  1998-05-26  |  3.2 KB  |  95 lines

  1. * This program file can be used to convert existing forms 
  2. * created using the Visual FoxPro 5.0 Form Wizard. Forms
  3. * created with the VFP5 Wizard used a very large classlib
  4. * called WIZSTYLE.VCX. This file has since been broken up 
  5. * into a number of smaller more reusable class libraries.
  6. * WIZSTYLE.VCX is still included for backward compatibility.
  7. * This utility simply redirects the old class WIZSTYLE class
  8. * references to the new files.
  9. * A backup copy with _OLD at the end of name is made for each
  10. * file updated.
  11.  
  12. LOCAL lMakeBackup,cFileName,cSaveArea,lCopyName 
  13. lMakeBackup = .t.
  14. cFileName = GETFILE("SCX|VCX")
  15. cSaveArea = SELECT()
  16. IF EMPTY(cFileName) OR !INLIST(UPPER(JUSTEXT(m.cFileName)),"SCX","VCX")
  17.     RETURN
  18. ENDIF
  19. SELECT 0
  20. USE (m.cFileName) EXCL
  21. IF EMPTY(ALIAS())
  22.     SELECT (m.cSaveArea)
  23.     RETURN
  24. ENDIF
  25. IF m.lMakeBackUp
  26.     lCopyName = JUSTSTEM(m.cFileName) +"_OLD.SCX"
  27.     COPY TO (m.lCopyName)
  28. ENDIF
  29.  
  30. * Standard Style
  31. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizstnd") ;
  32.     FOR ATC("Standard",class)#0
  33. REPLACE ALL parent WITH STRTRAN(parent,"wizstyle","wizstnd") ;
  34.     FOR ATC("Standard",class)#0
  35. REPLACE ALL class WITH STRTRAN(class,"wizstyle","wizstnd") FOR ;
  36.     ATC("Standard",class)#0
  37.     
  38. * Chiseled Style
  39. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizchsl") ;
  40.     FOR ATC("Chisel",class)#0
  41. REPLACE ALL parent WITH STRTRAN(parent,"wizstyle","wizchsl") ;
  42.     FOR ATC("Chisel",class)#0
  43. REPLACE ALL class WITH STRTRAN(class,"wizstyle","wizchsl") FOR ;
  44.     ATC("Chisel",class)#0
  45.     
  46. * Boxed Style
  47. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizbox") ;
  48.     FOR ATC("Box",class)#0
  49. REPLACE ALL parent WITH STRTRAN(parent,"wizstyle","wizbox") ;
  50.     FOR ATC("Box",class)#0
  51. REPLACE ALL class WITH STRTRAN(class,"wizstyle","wizbox") FOR ;
  52.     ATC("Box",class)#0
  53.     
  54. * Shadow Style
  55. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizshdow") ;
  56.     FOR ATC("Shadow",class)#0
  57. REPLACE ALL parent WITH STRTRAN(parent,"wizstyle","wizshdow") ;
  58.     FOR ATC("Shadow",class)#0
  59. REPLACE ALL class WITH STRTRAN(class,"wizstyle","wizshdow") FOR ;
  60.     ATC("Shadow",class)#0
  61.     
  62. * Embossed Style
  63. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizembss") ;
  64.     FOR ATC("emboss",class)#0
  65. REPLACE ALL parent WITH STRTRAN(parent,"wizstyle","wizembss") ;
  66.     FOR ATC("emboss",class)#0
  67. REPLACE ALL class WITH STRTRAN(class,"wizstyle","wizembss") FOR ;
  68.     ATC("emboss",class)#0
  69.     
  70. * Fancy Style
  71. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizfancy") ;
  72.     FOR ATC("Fancy",class)#0
  73. REPLACE ALL parent WITH STRTRAN(parent,"wizstyle","wizfancy") ;
  74.     FOR ATC("Fancy",class)#0
  75. REPLACE ALL class WITH STRTRAN(class,"wizstyle","wizfancy") FOR ;
  76.     ATC("Fancy",class)#0
  77.     
  78. * Buttons Style
  79. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizbtns") ;
  80.     FOR ATC("txtbtns",class)#0
  81. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizbtns") ;
  82.     FOR ATC("picbtns",class)#0
  83. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizbtns") ;
  84.     FOR ATC("scrollgrid",class)#0
  85. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizbtns") ;
  86.     FOR ATC("grid",class)#0
  87. REPLACE ALL classloc WITH STRTRAN(classloc,"wizstyle","wizbtns") ;
  88.     FOR ATC("search",class)#0
  89.     
  90.  
  91. USE    
  92. SELECT (m.cSaveArea)
  93.